package com.dingup.homework.service.impl;

import com.dingup.homework.bean.DO.HwSsatWordDO;
import com.dingup.homework.dao.HwSsatWordMapper;
import com.dingup.homework.service.HwSsatWordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author jun 2018/11/12.
 */
@Service
public class HwSsatWordServiceImpl implements HwSsatWordService {

    @Autowired
    private HwSsatWordMapper hwSsatWordMapper;

    @Override
    public Boolean add(HwSsatWordDO hwSsatWordDO) {
        return hwSsatWordMapper.add(hwSsatWordDO);
    }

    @Override
    public List<HwSsatWordDO> listByPaperId(Integer paperId) {
        return hwSsatWordMapper.listByPaperId(paperId);
    }

    @Override
    public List<Integer> listPaper() {
        return hwSsatWordMapper.listPaper();
    }

    @Override
    public HwSsatWordDO getById(Integer id) {
        return hwSsatWordMapper.getById(id);
    }

    @Override
    public Boolean update(HwSsatWordDO hwSsatWordDO) {
        return hwSsatWordMapper.update(hwSsatWordDO);
    }
}
